﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;
//MinhKhoa
namespace BUS
{
    public class TrangTriBUS
    {
        public List<shop_trangtri> LayTatCaTrangTri()
        {
            TrangTriDAO dao = new TrangTriDAO();
            return dao.LayTatCaTrangTri();
        }
        public void ThemTrangTri(shop_trangtri addObject)
        {
            TrangTriDAO dao = new TrangTriDAO();
            dao.ThemTrangTri(addObject);
        }
        public void XoaTrangTri(int Ma)
        {
            TrangTriDAO dao = new TrangTriDAO();
            dao.XoaTrangTri(Ma);
        }
        public void CapNhatTrangTri(int Ma, shop_trangtri editObject)
        {
            TrangTriDAO dao = new TrangTriDAO();
            dao.CapNhatTrangTri(Ma, editObject);
        }
    }
}